<template>
	<jiaofeiZJ>
		<template #chongzhi>
			<text class="paymentNextR">
				<text class="text1" @click="goTopUp">去充值</text>
				<text class="iconfont icon-xiangyou_fanhui"></text>
			</text>
		</template>
	</jiaofeiZJ>
	<view class="total">
		<text class="totalLeft">
			<text class="text1">合计：</text>
			<text class="text2">600.00</text>
		</text>
		<text class="totalRight" @click="gojiaofeiXX">扣款缴费</text>
	</view>
</template>

<script setup>
	import jiaofeiZJ from '~@/components/feng/jiaofeiZJ/jiaofeiZJ.vue'
	//去充值页面
	const goTopUp = () => {
		uni.navigateTo({
			url: '/pages/home/menzhenChagre/chargePage/chargePage'
		})
	}
	//去缴费信息
	const gojiaofeiXX = () => {
		uni.navigateTo({
			url: '/components/feng/jiaofeiXX/jiaofeiXX'
		})
	}
</script>

<style lang="scss">
	.cutOffRule {
		border: 1px solid #f2f2f2;
		margin: 0 20rpx;
	}

	.JFbox {
		display: flex;
		flex-direction: column;
		margin: 0 36rpx;
		margin-top: 36rpx;

		//第一部分

		.message {

			display: flex;
			flex-direction: column;

			.message1 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;
				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message2 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;
				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message3 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;
				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message4 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;
				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}

			.message5 {
				display: flex;
				flex-direction: row;
				height: 100rpx;
				align-items: center;
				box-sizing: border-box;

				.messageLeft {
					margin-left: 16rpx;
					color: #c0c0c0;
				}

				.messageRight {
					margin-left: 16rpx;
					color: #5a5d5a;
				}
			}
		}

		.detail {
			display: flex;
			flex-direction: column;
			margin-top: 26rpx;

			.detailPre {
				height: 80rpx;
				line-height: 80rpx;
				margin-left: 16rpx;
				color: #c0c0c0;
			}

			.detailNext {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				height: 120rpx;
				box-sizing: border-box;
				align-items: center;

				.detailNextL {
					margin-left: 16rpx;

					.drugName {
						margin-top: 10rpx;

						.text1 {
							color: #c0c0c0;
							font-size: 20rpx;
						}

						.text2 {
							color: #c0c0c0;
							font-size: 20rpx;
							margin-left: 16rpx;
						}
					}
				}

				.detailNextR {
					margin-right: 16rpx;
				}
			}
		}

		//第二部分
		.detailList {
			margin-bottom: 20rpx;
		}

		//第三部分
		.payment {
			.paymentPre {
				height: 100rpx;
				line-height: 100rpx;

				.text1 {
					line-height: 100rpx;
					color: #afafaf;
					margin: 0 16rpx;
				}

				.text2 {
					color: #756d89;
				}
			}

			.paymentNext {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				line-height: 100rpx;
				height: 100rpx;

				.text1 {
					line-height: 100rpx;
					color: #afafaf;
					margin: 0 16rpx;
				}

				.text2 {
					color: #756d89;
				}

				.paymentNextR {
					margin-right: 16rpx;

					.text1 {
						color: #006eff;
					}
				}
			}
		}

	}

	//第四部分
	.total {
		display: flex;
		flex-direction: row;
		margin-top: 50rpx;
		height: 100rpx;
		line-height: 100rpx;
		justify-content: space-between;


		.totalLeft {
			width: 50%;
			border-top: 1px solid #f2f2f2;

			.text1 {
				font-size: 20rpx;
				margin-left: 36rpx;
				width: 50%;
			}

			.text2 {
				color: #f66363;

			}
		}

		.totalRight {
			width: 50%;
			display: inline-block;
			text-align: center;
			background-color: #006eff;
			color: #fff;
		}
	}
</style>
